package com.ijecorp.media.audio;

import java.io.DataInputStream;
import java.io.File;
import java.io.IOException;

import com.ijecorp.media.fmt.WaveFormat;
import com.ijecorp.media.riff.RIFFChunkReader;
import com.ijecorp.media.riff.WAVEChunk;



public class WaveReader extends AudioReader{
	
	protected byte[] data;
	
	public WaveReader(File f) {
		super(f);
	}

	public final void read(){
		
	}

	public void checkFormat() {
			try {
				final WAVEChunk waveChunk = RIFFChunkReader.readWaveChunk(this.in);
				
			} catch (IOException e) {
				e.printStackTrace();
			}
			
	}
	
	public static void main(String args[]){
		AudioReader reader = AudioReader.getAudioReader(new File("L:\\temp\\1.wav"), AudioFormat.WAVE);
		reader.open();
		reader.read();
		reader.close();
	}
}

